<%@page import="server.Utils"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.regex.Pattern"%>
<%
String[] arrs = (String[])request.getAttribute("arr");
String domain = (String) request.getAttribute("domain");
HashMap<String,String> listGoogle = (HashMap<String,String>) request.getAttribute("listGoogle");
%>
		<%
		int i=0;
		int k=0;
		for (String key : listGoogle.keySet()) {
			if(arrs[i] != null)
			{
				String[] arr = arrs[i].split(" ");
		%>
			<div class="box border<%=k%>">
				<div class="box_top order<%=k%>"><%=key %></div>
				<ul dir="ltr">
					<%
					for(int j=0;j<arr.length;j++)
					{
						if(Pattern.matches("^http://[\\w\\W]+", arr[j]))
						{
					%>
						<li><a href="<%=arr[j]%>" rel="nofollow" target="_blank" title="<%=Utils.fomatDomain(arr[j]) %>" <%=(Utils.fomatDomain(arr[j]).equals(domain))?"style='color:red;'":"" %>><%=Utils.fomatDomain(arr[j]) %></a></li>
					<%
						}
					}
					%>
					
				</ul>
			</div>
		<%
			k++;
			if(k%5==0)
				k=0;
			}
			i++;
		}
		%>
		
		<div class="clear"></div>